<p class="Paragraph">Text: Any string expression that specifies an existing drive for which to return the current path (e.g., "C" for the first partition of the first hard drive).</p>
<p class="Paragraph">If no drive is specified or if the drive is a zero-length string (""), CurDir returns the path for the current drive. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic reports an error if the syntax of the drive description is incorrect or a drive is defined which either does not exist or is found after the drive defined in the CONFIG.SYS with the Lastdrive statement.</p>
<p class="Paragraph">This function is not case-sensitive.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleCurDir</p>
<p class="PropText">Dim sDir1 as String , sDir2 as String</p>